﻿/*const { signalR } = require("./signalr/dist/browser/signalr");*/
/*import * as singleR from '@microsoft/signalr';*/
"use strict";

var connection = new signalR.HubConnectionBuilder.withUrl("https://localhost:44371/equipmentSignalRService").build();

connection.on("CallByHub", function (msg) {
    console.log("服务器消息--->" + msg);
});

connection.start().then(function () {
    console.log("连接服务器--->");
}).catch(function (err) {
    return console.error(err.toString());
});